#ifndef CHESSBOARDITEM_H
#define CHESSBOARDITEM_H

#include <QGraphicsObject>



class ChessBoardItem : public QGraphicsObject
{
public:
    ChessBoardItem();
    virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
    virtual QRectF boundingRect() const;

    void drawLine(QPainter *painter);
    void drawNumber(QPainter *painter);
    void drawSelectBg(QPainter *painter);
    void drawSelect(QPainter *painter);
    void drawMenoText(QPainter *painter,QRectF rc,int inum);
};

#endif // CHESSBOARDITEM_H
